using AiQiuQuan.Sport.Model.Enums;
using System.ComponentModel.DataAnnotations;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 新增约球评价dto
    /// </summary>
    public class BallEvaluationAddDto
    {
        /// <summary>
        /// 约球ID
        /// </summary>
        [Required(ErrorMessage = "约球ID必填")]
        public Guid BallId { get; set; }

        /// <summary>
        /// 评价明细
        /// </summary>
        [Required(ErrorMessage = "评价明细必填")]
        [MinLength(1)]
        public List<BallEvaluationDetailAddDto> DetailList { get; set; }
    }

    /// <summary>
    /// 评论明细新增dto
    /// </summary>
    public class BallEvaluationDetailAddDto
    {
        /// <summary>
        /// 评价人
        /// </summary>
        [Required(ErrorMessage = "评价人必填")]
        public Guid UserId { get; set; }

        /// <summary>
        /// 评价等级：-1较低、0未知、1适合、2较高
        /// </summary>
        [Required(ErrorMessage = "评价等级：-1较低、0未知、1适合、2较高必填")]
        public BallEvaluationTypeEnum Level { get; set; }
    }
}
